home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / DELPHI / DRAGTOOL.ZIP / UNIT1.PAS < prev   
Encoding:
Pascal/Delphi Source File  |  1996-04-10  |  1.2 KB  |  52 lines

  1. unit Unit1;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, DragTool, ExtCtrls, StdCtrls, FileCtrl, Buttons;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     Panel1: TPanel;
  12.     DragToolBar2: TDragToolBar;
  13.     Edit2: TEdit;
  14.     Button2: TButton;
  15.     Button3: TButton;
  16.     DragToolBar1: TDragToolBar;
  17.     SpeedButton1: TSpeedButton;
  18.     SpeedButton2: TSpeedButton;
  19.     SpeedButton3: TSpeedButton;
  20.     SpeedButton4: TSpeedButton;
  21.     SpeedButton5: TSpeedButton;
  22.     DriveComboBox1: TDriveComboBox;
  23.     FileListBox1: TFileListBox;
  24.     DirectoryListBox1: TDirectoryListBox;
  25.     FilterComboBox1: TFilterComboBox;
  26.     procedure FormCreate(Sender: TObject);
  27.   private
  28.     { Private declarations }
  29.   public
  30.     { Public declarations }
  31.   end;
  32.  
  33. var
  34.   Form1: TForm1;
  35.  
  36. implementation
  37.  
  38. {$R *.DFM}
  39.  
  40. procedure TForm1.FormCreate(Sender: TObject);
  41. var MyDragTool: TDragToolBar;
  42. begin
  43.     MyDragTool := TDragToolBar.Create(Panel1);
  44.     MyDragTool.Parent     := Panel1;
  45.     MyDragTool.SnapToGrid := True;
  46.     MyDragTool.Name       := 'DynamicToolBar';
  47.     MyDragTool.Title      := 'This was Created at Run Time';
  48.     MyDragTool.Height     := 33;
  49. end;
  50.  
  51. end.
  52.